<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  header("location:checklogin.php");
}

$deleteParty = "DELETE FROM user  
                 WHERE  userId = ".$_GET['userId'];
$deletePartyRes = mysql_query($deleteParty);
if(!$deletePartyRes)
{
	echo("DELETE FAIL");
}
else
{
	header("Location:users.php");
}
?>